<h1>Delete wish list</h1>

<div class="preview">

    <!-- FIX ME: Move this class to the stylesheet, there should be no inline styling here -->
    <div class="headercontain" style="margin-top:-1.5em;">
        <p><?=$wishlist["Title_Wishlists"]?></p>
    </div>    

    <div class="contain">
    
        <? if (!empty($products)) { ?>
           
            <p> 
            <? 
			$max_items = 10;
			$more_items = 0;
			foreach($products as $product) {             
				if ($max_items>=1){ ?>
					<?=$product["title"]?><br />
				<? } else { 
					$more_items++;
				}
            	$max_items--;
			} 
			?>
                
	        <?
			if ($more_items==1) {
			?>
				<?=$product["title"]?><br />
            <? 
			} else if ($more_items>1) {
			?>
            	...<?=$more_items?> other products
            <? } ?>                
            </p>
            
        <? } else { ?>
        	<p>
            	<strong>
            		<?=$this->lang->line('WishlistEmpty');?>
        		</strong>
            </p>
		<? } ?>        
        
	</div>
</div>


<form action="<?=site_url('wishlist/delete_wishlist')?>" method="post">

    <p>Are you sure you want to delete this wish list?</p>
    
    <br /><br /><br /><br />

    
    <!-- FIX ME: Move this class to the stylesheet, there should be no inline styling here -->
    <div class="bottom_buttons" style="position:absolute;bottom:30px">
    
        <input class="button" type="submit" name="submit" value="DELETE" />
        <input type="hidden" name="token" id="token" value="<?=$token?>" />
		<input type="hidden" name="wishlist_id" id="wishlist_id" value="<?=$wishlist["id_Wishlists"]?>" />
		<a class="button cancel" href="#">CANCEL</a>
    </div>
    
</form>